package org.example.versii.server;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author mojito
 * @Classname ServiceMap
 * @Description TODO
 * @Date 2020/7/21 下午11:04
 **/
public class ServiceMap {
    private static final Map<String, Object> serviceMap = new ConcurrentHashMap<>(8);

    public static void registryService(String key, Object service) {
        serviceMap.put(key, service);
    }

    public static Object getService(String key) {
        return serviceMap.get(key);
    }
}
